﻿var PositionAdvancedSearch = function (data) {
    this.UserId = ko.observable(data.UserId ? data.UserId : 0);
    this.ShowAll = ko.observable(data.ShowAll ? data.ShowAll : false);
    this.SimpleSearch = ko.observable(data.SimpleSearch ? data.SimpleSearch : false);
    this.Keywords = ko.observableArray(data.Keywords ? data.Keywords : []);
    this.PageIndex = ko.observable(data.PageIndex ? data.PageIndex : 0);
    this.PageSize = ko.observable(data.PageSize ? data.PageSize : 10);
    this.Title = ko.observable(data.Title ? data.Title : "");
    this.StartDate = ko.observable(data.StartDate ? data.StartDate : "");
    this.Duration = ko.observable(data.Duration ? data.Duration : "");
    this.Location = ko.observable(data.Location ? data.Location : "");
    this.XLocation = ko.observable(data.Location ? data.Location : 1000);
    this.YLocation = ko.observable(data.Location ? data.Location : 1000);
    this.Distance = ko.observable(data.Distance ? data.Distance : 0);
    this.JobType = ko.observable(data.JobType ? data.JobType : "");
    this.JobTypes = ko.observableArray(data.JobTypes ? data.JobTypes : []);
    this.CountryIds = ko.observableArray(data.CountryIds ? data.CountryIds : []);
    this.IndustryIds = ko.observableArray(data.CountryIds ? data.CountryIds : []);
    this.CategoryIds = ko.observableArray(data.IndustryIds ? data.IndustryIds : []);
    this.TechnologyIds = ko.observableArray(data.TechnologyIds ? data.TechnologyIds : []);
    this.CompanyProfileIds = ko.observableArray(data.CompanyProfileIds ? data.CompanyProfileIds : []);
}